import login from "@/api/login.js"

const user = {
	namespaced:true,
	state:{
		isLogin:false,
		userInfo:null
	},
	mutations:{
		SET_USERINFO(state, userInfo) {
			state.userInfo = userInfo
		},
		SET_ISLOGIN(state, isLogin) {
			state.isLogin = isLogin
		}
	},
}

export default user